import request from '@/utils/request'

// 查询影视评分列表
export function listRatings(query) {
  return request({
    url: '/system/ratings/list',
    method: 'get',
    params: query
  })
}

// 查询影视评分详细
export function getRatings(ratingsId) {
  return request({
    url: '/system/ratings/' + ratingsId,
    method: 'get'
  })
}

// 新增影视评分
export function addRatings(data) {
  return request({
    url: '/system/ratings',
    method: 'post',
    data: data
  })
}

// 修改影视评分
export function updateRatings(data) {
  return request({
    url: '/system/ratings',
    method: 'put',
    data: data
  })
}

// 删除影视评分
export function delRatings(ratingsId) {
  return request({
    url: '/system/ratings/' + ratingsId,
    method: 'delete'
  })
}
